package org.keyyond.ms.scheduler.jobs;

import org.keyyond.ms.scheduler.service.NCJobService;
import org.quartz.DisallowConcurrentExecution;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;

@DisallowConcurrentExecution //非并发执行
public class TestJob1 implements BaseJob {
	
	@Autowired
	private NCJobService ncJobService ;
	
	@Override
	public void execute(JobExecutionContext context)
			throws JobExecutionException {
		try {
			Thread.sleep(5000);
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		System.out.println("=================this is test job");

	}

}
